package com.tt.dp.adapter.test;

import com.tt.dp.adapter.TurkeyAdapter;
import com.tt.dp.adapter.mdoel.Duck;
import com.tt.dp.adapter.mdoel.MallardDuck;
import com.tt.dp.adapter.mdoel.WildTurkey;

public class DuckTestDrive {

    public static void main(String[] args) {

        Duck fakeDuck = new TurkeyAdapter(new WildTurkey());
        Duck duck = new MallardDuck();

        fakeDuck.quack();
        fakeDuck.fly();
        duck.quack();
        duck.fly();
    }
}
